package com.along.framework.utils;

import java.io.File;
import java.util.ArrayList;

public class FileUpVO {
	
	private static ArrayList<String> al = new ArrayList<String>(); 
	
	private File upload;
	
	private String uploadContentType;

	private String uploadFileName;

	private String filePath;
	
	private String rootPath;
	
	public String getRootPath() {
		return rootPath;
	}

	public void setRootPath(String rootPath) {
		this.rootPath = rootPath;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public File getUpload() {
		return upload;
	}

	public void setUpload(File upload) {
		this.upload = upload;
	}

	public String getUploadContentType() {
		return uploadContentType;
	}

	public void setUploadContentType(String uploadContentType) {
		this.uploadContentType = uploadContentType;
	}

	public String getUploadFileName() {
		return uploadFileName;
	}

	public void setUploadFileName(String uploadFileName) {
		this.uploadFileName = uploadFileName;
	}
	
	public boolean getFileType(){
		return al.contains(uploadContentType);
	}
	static{
		al.add("image/gif");
		al.add("image/pjpeg");
		al.add("image/jpeg");
		al.add("image/bmp");
		al.add("image/jpg");
	}
}
